<%@ page language="java" contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管线业务</title>
<link rel="stylesheet" href="${contextPath}/resources/assets/css/bootstrap.css" />
    <link rel="stylesheet" href="${contextPath}/resources/assets/css/font-awesome.css" />

    <!-- page specific plugin styles -->

    <!-- text fonts -->
    <link rel="stylesheet" href="${contextPath}/resources/assets/css/ace-fonts.css" />

    <!-- ace styles -->
    <link rel="stylesheet" href="${contextPath}/resources/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />

    <!--[if lte IE 9]>
			<link rel="stylesheet" href="${contextPath}/resources/assets/css/ace-part2.css" class="ace-main-stylesheet" />
		<![endif]-->

    <!--[if lte IE 9]>
		  <link rel="stylesheet" href="${contextPath}/resources/assets/css/ace-ie.css" />
		<![endif]-->

    <!-- inline styles related to this page -->
<link rel="stylesheet" type="text/css" href="${contextPath}/resources/css/sqbDownUp.css"/>
<script src="${contextPath}/resources/assets/js/ace-extra.js"></script>
<script src="${contextPath}/resources/js/sqbDownUp.js" type="text/javascript"></script>
		 <script type="text/javascript">
        window.jQuery || document.write("<script src='${contextPath}/resources/assets/js/jquery.js'>" + "<" + "/script>");
    </script>
<script type="text/javascript">
  var contextPath = '${contextPath}';
  var compId = '${compId}';
  var compName = '${compName}';
  var phoneNo = '${phoneNo}';
  
  $(document).ready(function() {
	if(compId!==""){
		document.getElementById("CompName").value=compName;
		document.getElementById("CallNo").value=phoneNo;
		
	}
	
	$.ajax({
		url : "loadPTSelect",
		cache : false,
		success : function(result) {
		  for(var i=0;i<result.length;i++){
		      document.getElementById("PType").options.add(new Option(result[i].type,result[i].id));
		  }
		}
	});
	
	$.ajax({
		url : "loadWSSelect",
		cache : false,
		success : function(result) {
		  for(var i=0;i<result.length;i++){
		      document.getElementById("sIntroduction").options.add(new Option(result[i].name,result[i].id));
		      document.getElementById("eIntroduction").options.add(new Option(result[i].name,result[i].id));
		  }
		}
	});
	
});
  
</script>
<style>
        .seari_logo {
            padding-left: 10px;
            color: #ffffff;
            font-size: 20px;
            text-shadow: none;
            font-weight: 600;
            line-height: 80px;
            
        }
        
        .seari_logo:hover,
        .seari_logo:focus {
            color: #ffffff;
            text-decoration: none;
        }
        
       .navbar{
            min-height: 80px;
            background: url("${contextPath}/resources/img/navbar-bg.png") repeat-x;
        }
        
        .navbar .navbar-nav > li {
            border: 0px solid rgba(0, 0, 0, 0);
        }
        
        .navbar .navbar-nav > li > a {
            padding-top: 18px;
        }
        
        @media only screen and (max-width: 991px) {
            .navbar-nav {
                float: left;
                margin: 0;
            }
            .navbar-nav > li {
                float: left;
            }
            .navbar-menu-min .navbar-nav > li > a > .menu-title {
                /*display: none;*/
            }
        }
        
        .navbar-menu{
            padding-top: 20px;
        }
        .menu-title{
            font:16px/1.5 'Microsoft YaHei',SimSun;
        }
        .page-content{
           font:16px/20px "Microsoft YaHei";
        }
        .sidebar{
            font-family:  "Microsoft YaHei";
        }
        .breadcrumb{
            font-family:  "Microsoft YaHei";
        }
        
        /****box design style*****/
.box {
	float: left;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
	display: block;
	background-color: #fff;
}
.london {border-top: 7px solid #19beb6;}
.paris { border-top: 7px solid #df9801; }
.box-icon {
	width: 100%;
	position: relative;
}

.info-nav-container {
	width: 32%;
    margin-right: 3%;
}

.float-container { overflow: auto; }

.info {
	width: 100%;
	padding: 15px 30px 20px;
    font-size: 16px;
}

.info-description-container {
	padding: 20px 30px;
	float: right;
	width: 65%;
}


.london-title {
	padding: 0 0 0 5px;
	border-left: 2px solid #19beb6;
	margin: 25px 0px;
}
.london-title h2 {
	color: #19beb6;
	font:24px/1.5 'Microsoft YaHei';
	margin: 5px;
}

        
.paris-title {	border-left: 2px solid #df9801; }
.paris-title h2 { color: #df9801;font:24px/1.5 'Microsoft YaHei'; }
        
        .banner-main-home {
	background-color: white;
	background: url("${contextPath}/resources/img/gcgk-3.jpg");
background-position: bottom;
	background-size: cover;
	border-top: 7px solid #10a5cd;
	min-height: 650px;	
	overflow-y: auto;
}
.banner-main-home {
	padding: 0px 0px 0px 50px;
}
.banner-main-home-bg {
	position: relative;
	float: right;
	width: 45%;
    height:650px;
    background-color: rgba(39,39,39,0.6);
    padding:180px 40px 0px 40px;
}        
.banner-main-home-text {
	color: #fff;
	text-align: left;
	right: 0;
	top: 0px; 
	left: 0;
	text-shadow: none;
    font:16px/1.5 'Microsoft YaHei';
}
        .heading{
            border-left: 4px solid #10a5cd;
        }
        
        .banner-main-home-text h2{
            margin: 5px;
            font:24px/1.5 'Microsoft YaHei';
        }
    </style>
</head>
<body class="no-skin">
     <jsp:include page="index.jsp" flush="true" />
     
       <div class="main-container" id="main-container">
         <div id="sidebar" class="sidebar                  responsive">
            <script type="text/javascript">
                try {
                    ace.settings.check('sidebar', 'fixed');
                } catch (e) {}
            </script>
            
            <ul class="nav nav-list">
               <li class="active open">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-tag"></i>
                        <span class="menu-text"> 入廊申请 </span>

                        <b class="arrow fa fa-angle-down"></b>
                    </a>

                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li class="active">
                            <a href="sqbDownUp?compId=&compName=&phoneNo=">
                                <i class="menu-icon fa fa-caret-right"></i> 申请表格下载/上传
                            </a>

                            <b class="arrow"></b>
                        </li>

                        <li class="">
                            <a href="sqbRecord">
                                <i class="menu-icon fa fa-caret-right"></i> 申请记录
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                
                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-tag"></i>
                        <span class="menu-text"> 手续办理 </span>

                        <b class="arrow fa fa-angle-down"></b>
                    </a>

                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li class="">
                            <a href="ywcz?compId=&compName=">
                                <i class="menu-icon fa fa-caret-right"></i> 业务操作
                            </a>

                            <b class="arrow"></b>
                        </li>

                        <li class="">
                            <a href="ywda">
                                <i class="menu-icon fa fa-caret-right"></i> 业务档案
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                
                 <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-tag"></i>
                        <span class="menu-text"> 合同管理 </span>

                        <b class="arrow fa fa-angle-down"></b>
                    </a>

                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li class="">
                            <a href="htmbDownUp">
                                <i class="menu-icon fa fa-caret-right"></i> 合同模板下载/上传
                            </a>

                            <b class="arrow"></b>
                        </li>

                        <li class="">
                            <a href="htda">
                                <i class="menu-icon fa fa-caret-right"></i> 合同档案
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                
                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-tag"></i>
                        <span class="menu-text"> 施工管理 </span>

                        <b class="arrow fa fa-angle-down"></b>
                    </a>

                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li class="">
                            <a href="xkgl">
                                <i class="menu-icon fa fa-caret-right"></i> 许可管理
                            </a>

                            <b class="arrow"></b>
                        </li>

                        <li class="">
                            <a href="bzjgl">
                                <i class="menu-icon fa fa-caret-right"></i> 保证金管理
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                        <li class="">
                            <a href="fwsq">
                                <i class="menu-icon fa fa-caret-right"></i> 服务申请
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                        <li class="">
                            <a href="sgrz">
                                <i class="menu-icon fa fa-caret-right"></i> 施工日志
                            </a>

                            <b class="arrow"></b>
                        </li>
                        

                    </ul>
                </li>
                
                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-tag"></i>
                        <span class="menu-text"> 费用清算 </span>

                        <b class="arrow fa fa-angle-down"></b>
                    </a>

                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li class="">
                            <a href="feeSimulate">
                                <i class="menu-icon fa fa-caret-right"></i> 入廊费用计算器
                            </a>

                            <b class="arrow"></b>
                        </li>

                        <li class="">
                            <a href="jfRecord">
                                <i class="menu-icon fa fa-caret-right"></i> 缴费记录
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                
                 <li class="">
                    <a href="visitApply" >
                        <i class="menu-icon fa fa-tag"></i>
                        <span class="menu-text"> 参观申请 </span>
                        
                    </a>

                    <b class="arrow"></b>
                    
                </li>
                
                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-tag"></i>
                        <span class="menu-text"> 后台管理 </span>

                        <b class="arrow fa fa-angle-down"></b>
                    </a>

                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li class="">
                            <a href="rlsqEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 入廊申请
                            </a>

                            <b class="arrow"></b>
                        </li>

                        <li class="">
                            <a href="ywdaEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 业务档案
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                        <li class="">
                            <a href="htdaEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 合同档案
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                         <li class="">
                            <a href="xkglEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 许可管理
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                        <li class="">
                            <a href="bzjEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 保证金管理
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                        <li class="">
                            <a href="fwsqEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 服务申请
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                        <li class="">
                            <a href="sgjlEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 施工记录
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                        <li class="">
                            <a href="jfjlEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 缴费记录
                            </a>

                            <b class="arrow"></b>
                        </li>
                        
                        <li class="">
                            <a href="gxdaEdit">
                                <i class="menu-icon fa fa-caret-right"></i> 管线档案
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
            </ul>
            <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
            </div>

            <!-- /section:basics/sidebar.layout.minimize -->
            <script type="text/javascript">
                try {
                    ace.settings.check('sidebar', 'collapsed');
                } catch (e) {}
            </script>
        </div>
	       <div class="main-content">
	       <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa fa-home home-icon"></i>
                        <a href="#">管线业务</a>
                    </li>
                    <li>
                        <a href="#">入廊申请</a>
                    </li>
                    <li class="active">申请表格下载/上传</li>
                </ul>
                <!-- /.breadcrumb -->
            </div>
               <!-- 
  		      <div class="cbLeft">
				<div class="cTitle"><font class="cTFont">综合管廊入廊申请须知</font></div>
				<p class="cSIntroduce">1、入廊单位在进入综合管廊前必须提前24小时向管廊运营管理公司提出申请;</p>
				<p class="cSIntroduce">2、未经审批禁止入廊，未经同意擅自进入管廊造成损坏的，应承担相应法律责任;</p>
				<p class="cSIntroduce">3、在管廊内进行动火等特殊工种作业时入廊单位要提前3天进行专项审批登记;</p>
				<p class="cSIntroduce">4、进出管廊人员必须出示身份证件并实名登记，以备检查;</p>
				<p class="cSIntroduce">5、表格填下参照下表:</p>
				<img class="rlspImg" src="${contextPath}/resources/img/rlsqspb.png">
				<span class="cSIntroduce">综合管廊入廊申请表模板下载</span>
				<div class="button gray" onclick="acceptDownload()"><div class="shine"></div>点击下载</div>
			  </div>
			  <div class="cbLine">
			    <img src="${contextPath}/resources/img/line1.png">
			  </div>
			  <div class="cbRight">
			    <div class="cTitle"><font class="cTFont">综合管廊入廊申请上传</font></div>
			    <form id="formID" action="" method="post" enctype="multipart/form-data">
			     <div class="txtgroup">
			       <input type='text' name='CompName' id='CompName' style="background-color:white;color:darkgrey;width:350px" class='txt' onfocus="this.value=''" placeholder='请输入您的单位名称'/>
			      </div>
			      <div class="txtgroup">
			       <input type='text' name='CallNo' id='CallNo' class='txt' style="background-color:white;margin-top:50px;color:darkgrey;width:350px" onfocus="this.value=''" placeholder='请填写您的联系电话' />
			      </div>
			      <div>
			       	<input type="file" name="fileField" id='fileField' class='txt' style="background-color:white;margin-top:50px;width:350px;display:none" onchange="document.getElementById('filename').value=this.value"/>
			       	<input type="text" name='filename'  id='filename'  class='txt' style="background-color:white;margin-top:50px;color:darkgrey;width:350px" value='请选择文件'/>
			     	<input name="button" type="button" id="bt1" onclick="fileField.click()"  class="button gray" value="浏览文档" />
			      </div>
			       <input type="submit" name="submit" class="button gray" onclick="acceptUpload()" style="margin-top:30px" value="确定并提交" />
			    </form>
			  </div>
			 -->
			  <div class="page-content">
	       
	       <div class="row">
							<div class="col-xs-12">
	       	<div class="widget-box">
									<div class="widget-header widget-header-blue widget-header-flat">
										<h4 class="widget-title lighter"></h4>

									</div>
									
									<div class="widget-body">
										<div class="widget-main">
											<!-- #section:plugins/fuelux.wizard -->
											<div id="fuelux-wizard-container">
												<div>
													<!-- #section:plugins/fuelux.wizard.steps -->
													<ul class="steps">
														<li data-step="1" class="active">
															<span class="step">1</span>
															<span class="title">须知</span>
														</li>

														<li data-step="2">
															<span class="step">2</span>
															<span class="title">上传</span>
														</li>
													</ul>

													<!-- /section:plugins/fuelux.wizard.steps -->
												</div>

												<hr />

												<!-- #section:plugins/fuelux.wizard.container -->
												<div class="step-content pos-rel">
													<div class="step-pane active" data-step="1">
													<div class="row">
													<div class="col-lg-8 col-lg-offset-2">
														<div class="center" ><h3 class="lighter block green" style="font: 24px/1.5 'Microsoft YaHei';">综合管廊入廊申请须知</h3></div>
															<p>1、入廊单位在进入综合管廊前必须提前24小时向管廊运营管理公司提出申请;</p>
															<p>2、未经审批禁止入廊，未经同意擅自进入管廊造成损坏的，应承担相应法律责任;</p>
															<p>3、在管廊内进行动火等特殊工种作业时入廊单位要提前3天进行专项审批登记;</p>
															<p>4、进出管廊人员必须出示身份证件并实名登记，以备检查;</p>
															<p>5、表格填下参照下表:</p>
															
															<img src="${contextPath}/resources/img/rlsqspb.png"  alt=""  class="img-responsive" />
															<br />
															<p class="pull-right">综合管廊入廊申请表模板下载：<button class="btn btn-primary" onclick="acceptDownload()"><i class="ace-icon fa fa-download align-top bigger-125"></i>下载</button></p>
															
														

														</div>
														</div>
													</div>

													<div class="step-pane" data-step="2">
													<div class="center">
														<h3 class="lighter block green" style="font: 24px/1.5 'Microsoft YaHei';">综合管廊入廊申请上传</h3>
													</div>

														<form class="form-horizontal" id="validation-form" method="post" enctype="multipart/form-data">
															<div class="form-group">
																<label class="control-label col-xs-12 col-sm-3 no-padding-right" for="CompName">申请单位名称：</label>

																<div class="col-xs-12 col-sm-9">
																	<div class="clearfix">
																		<input type="CompName" name="CompName" id="CompName" class="col-xs-12 col-sm-6" />
																	</div>
																</div>
															</div>

															<div class="space-2"></div>
															
															<div class="form-group">
																<label class="control-label col-xs-12 col-sm-3 no-padding-right" for="Contactor">联系人：</label>

																<div class="col-xs-12 col-sm-9">
																	<div class="clearfix">
																		<input type="Contactor" name="Contactor" id="Contactor" class="col-xs-12 col-sm-6" />
																	</div>
																</div>
															</div>

															<div class="form-group">
																<label class="control-label col-xs-12 col-sm-3 no-padding-right" for="CallNo">联系方式：</label>

																<div class="col-xs-12 col-sm-9">
																	<div class="clearfix">
																		<input type="CallNo" name="CallNo" id="CallNo" class="col-xs-12 col-sm-6" />
																	</div>
																</div>
															</div>
															
															<div class="form-group">
																<label class="control-label col-xs-12 col-sm-3 no-padding-right" for="builderName">施工单位：</label>

																<div class="col-xs-12 col-sm-9">
																	<div class="clearfix">
																		<input type="builderName" name="builderName" id="builderName" class="col-xs-12 col-sm-6" />
																	</div>
																</div>
															</div>
															
															<div class="form-group">
																<label class="control-label col-xs-12 col-sm-3 no-padding-right" for="PType">入廊管线类型：</label>

																<div class="col-xs-12 col-sm-9">
																	<div class="clearfix">
																		<select class="col-xs-4" id="PType" name="PType" data-placeholder="请选择" class="chosen-select" style="width:376px;height:30px;" tabindex="2" >
										                                    	<option value="">请选择</option>
										                                	</select>
																	</div>
																</div>
															</div>
															
															<div class="form-group">
																<label class="control-label col-xs-12 col-sm-3 no-padding-right" for="sIntroduction">引入位置：</label>

																<div class="col-xs-12 col-sm-9">
																	<div class="clearfix">
																		<select class="col-xs-4" id="sIntroduction" name="sIntroduction" data-placeholder="请选择" class="chosen-select" style="width:376px;height:30px;" tabindex="2" >
										                                    	<option value="">请选择</option>
										                                	</select>
																	</div>
																</div>
															</div>
															
															<div class="form-group">
																<label class="control-label col-xs-12 col-sm-3 no-padding-right" for="eIntroduction">引出位置：</label>

																<div class="col-xs-12 col-sm-9">
																	<div class="clearfix">
																		<select class="col-xs-4" id="eIntroduction" name="eIntroduction" data-placeholder="请选择" class="chosen-select" style="width:376px;height:30px;" tabindex="2" >
										                                    	<option value="">请选择</option>
										                                	</select>
																	</div>
																</div>
															</div>
															
															<!--  
															<div class="space-2"></div>

															<div class="form-group">
																<label class="control-label col-xs-12 col-sm-3 no-padding-right" for="fileField">入廊申请表上传：</label>

																<div class="col-xs-12 col-sm-9">
																	<div class="clearfix">
																		
																		<div class="col-xs-12 col-sm-6 no-padding-left no-padding-right"><input type="file" name="fileField"  id="fileField" /></div>
																	</div>
																</div>
															</div>
															-->



															<div class="space-2"></div>

															
														</form>
								
														
													</div>

												</div>

												<!-- /section:plugins/fuelux.wizard.container -->
											</div>

											<hr />
											<div class="wizard-actions">
												<!-- #section:plugins/fuelux.wizard.buttons -->
												<button class="btn btn-prev">
													<i class="ace-icon fa fa-arrow-left"></i>
													后退
												</button>

												<button class="btn btn-success btn-next" data-last="完成">
													下一步
													<i class="ace-icon fa fa-arrow-right icon-on-right"></i>
												</button>

												<!-- /section:plugins/fuelux.wizard.buttons -->
											</div>

											<!-- /section:plugins/fuelux.wizard -->
										</div><!-- /.widget-main -->
									</div><!-- /.widget-body -->
									
									
		</div>
	       
	       
	       
			  
			  
			  
			  </div>
			  </div>
			</div><!-- /.page-content -->
		   </div>
		</div>
    <script type="text/javascript">
        if ('ontouchstart' in document.documentElement) document.write("<script src='${contextPath}/resources/assets/js/jquery.mobile.custom.js'>" + "<" + "/script>");
    </script>
    <script src="${contextPath}/resources/assets/js/bootstrap.js"></script>
    <script type="text/javascript">
			jQuery(function($) {
				
				$('#fuelux-wizard-container')
				.ace_wizard({
					//step: 2 //optional argument. wizard will jump to step "2" at first
					//buttons: '.wizard-actions:eq(0)'
				})
				.on('actionclicked.fu.wizard' , function(e, info){
					
				})
				.on('finished.fu.wizard', function(e) {
					if(!$('#validation-form').valid()){
						e.preventDefault();
						}
					else{
						debugger;
						if(compId==""){
						document.getElementById("validation-form").action="addAccept";
						$("#validation-form").submit();
						}
						else{
							document.getElementById("validation-form").action="updateAccept?compId="+compId;
							$("#validation-form").submit();
						}
						/**
						var bname = document.getElementById("bname").value;
						var uname = document.getElementById("uname").value;
						var recordFile = document.getElementById("id-input-file-1").files[0];
						 $.ajax({
								url : "addRecordAudit?bname="+bname+"&uname="+uname+"&recordFile="+recordFile,
								cache : false,
								success : function(result) {
					bootbox.dialog({
						message: "谢谢! 您的信息已成功提交!", 
						buttons: {
							"success" : {
								"label" : "OK",
								"className" : "btn-sm btn-primary"
							}
						}
					});
								}
						 });
						 **/
					}
				}).on('stepclick.fu.wizard', function(e){
					//e.preventDefault();//this will prevent clicking and selecting steps
				});
				
				
				
				$('#validation-form').validate({
					errorElement: 'div',
					errorClass: 'help-block',
					focusInvalid: false,
					ignore: "",
					rules: {
						CompName: {
							required: true
						},
						CallNo: {
							required: true
						},
						Contactor: {
							required: true
						},
						PType: {
							required: true
						},
						builderName: {
							required: true
						}
						
					},
			
					messages: {
						CompName: "请输入至少一个字符",
						CallNo: "请输入至少一个字符",
						Contactor: "请输入至少一个字符",
						PType: "请选择管线类型",
						builderName: "请输入至少一个字符"
					},
			
			
					highlight: function (e) {
						$(e).closest('.form-group').removeClass('has-info').addClass('has-error');
					},
			
					success: function (e) {
						$(e).closest('.form-group').removeClass('has-error');//.addClass('has-info');
						$(e).remove();
					},
			
					errorPlacement: function (error, element) {
						if(element.is('input[type=checkbox]') || element.is('input[type=radio]')) {
							var controls = element.closest('div[class*="col-"]');
							if(controls.find(':checkbox,:radio').length > 1) controls.append(error);
							else error.insertAfter(element.nextAll('.lbl:eq(0)').eq(0));
						}
						else if(element.is('.select2')) {
							error.insertAfter(element.siblings('[class*="select2-container"]:eq(0)'));
						}
						else if(element.is('.chosen-select')) {
							error.insertAfter(element.siblings('[class*="chosen-container"]:eq(0)'));
						}
						else error.insertAfter(element.parent());
					},
			
					submitHandler: function (form) {
					   form.submit();
					},
					invalidHandler: function (form) {
					}
				});
			
			
			$('#fileField').ace_file_input({
					no_file:'No File ...',
					btn_choose:'选择',
					btn_change:'更改',
					droppable:false,
					onchange:null,
					thumbnail:false //| true | large
					//whitelist:'gif|png|jpg|jpeg'
					//blacklist:'exe|php'
					//onchange:''
					//
				});
			
			})
			function acceptDownload(){
				window.open('acceptDownload');
			}
		</script>

    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

    <!--[if lte IE 8]>
		<script src="${contextPath}/resources/assets/js/html5shiv.js"></script>
		<script src="${contextPath}/resources/assets/js/respond.js"></script>
		<![endif]-->
	<script src="${contextPath}/resources/assets/js/ace/elements.scroller.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/elements.colorpicker.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/elements.fileinput.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/elements.typeahead.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/elements.wysiwyg.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/elements.spinner.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/elements.treeview.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/elements.wizard.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/elements.aside.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.ajax-content.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.touch-drag.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.sidebar.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.sidebar-scroll-1.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.submenu-hover.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.widget-box.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.settings.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.settings-rtl.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.settings-skin.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.widget-on-reload.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.searchbox-autocomplete.js"></script>
    <script src="${contextPath}/resources/assets/js/ace/ace.hover-dropdown.js"></script>
    
    <script src="${contextPath}/resources/assets/js/fuelux/fuelux.wizard.js"></script>
	<script src="${contextPath}/resources/assets/js/jquery.validate.js"></script>
	<script src="${contextPath}/resources/assets/js/additional-methods.js"></script>
	<script src="${contextPath}/resources/assets/js/bootbox.js"></script>
	<script src="${contextPath}/resources/assets/js/jquery.maskedinput.js"></script>
</body>
</html>
